package cn.itcast.springboot.config;

import cn.itcast.springboot.pojo.Cat;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @package cn.itcast.springboot.pojo
 * @description:
 * @author: 许超越
 * @date 2019/6/9 15:44
 * @version: V1.0
 */
@Component
@ConfigurationProperties(prefix = "person")
public class Person {

    private String name;
    private Integer age;
    private List<String> hobby;
    private Cat cat;
    private Map<String,String> sanwei;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public List<String> getHobby() {
        return hobby;
    }

    public void setHobby(List<String> hobby) {
        this.hobby = hobby;
    }

    public Cat getCat() {
        return cat;
    }

    public void setCat(Cat cat) {
        this.cat = cat;
    }

    public Map<String, String> getSanwei() {
        return sanwei;
    }

    public void setSanwei(Map<String, String> sanwei) {
        this.sanwei = sanwei;
    }
}
